import http from "@/utils/http";
const prefixUrl = {
  pwd: "/authority/auth/updatePassword",
  avatar: "/authority/user/updateAvatar",
  updateInfo: "/authority/user/updateInfo",
  // 获取当前登录人员基础信息
  userInfo: "/authority/user/getLoginUserInfo",
  // 通用上传附件接口（富文本框中传图片可用）
  uploadFile: "/incident/incidentAttachment/saveAttachment",
};
export default {
  role: {},
  queryUserInfo(params = {}) {
    return http.post(prefixUrl.userInfo, params);
  },
  updatePwd(params = {}) {
    return http.post(prefixUrl.pwd, params);
  },
  updateAvatar(params = {}) {
    return http.post(prefixUrl.avatar, params);
  },
  updateUserInfo(params = {}) {
    return http.post(prefixUrl.updateInfo, params);
  },
  uploadFile(params = {}) {
    return http.post(prefixUrl.uploadFile, params);
  },
};
